import request from '@/utils/request';

// 组织架构
export function getSysStructsTreeApi() {
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysStruct/getSysStructsTree',
    method: 'get'
  });
}

// 获取部门详情
export function getSysStructDetailApi(objectId) {
  let url = process.env.VUE_APP_SYS_SERVICE + 'api/sysStruct/getById';
  return request({
    url: url,
    method: 'get',
    params: { objectId }
  });
}
